import {BaseResponse, METHODS, request} from '@/utils/request';

export function userLoginApi(data: Object) {
  return request<BaseResponse>({
    baseURL: '/security/user/login',
    method: METHODS.POST,
    data
  }, {
    isDataDirectly: false
  })
}

export function logoutApi(data: Object = {}) {
  return request<BaseResponse>({
    baseURL: '/security/user/logout',
    method: METHODS.POST,
    data
  }, {
    isDataDirectly: false
  })
}